home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / SocketClasses / Chat / Chatserver.h < prev    next >
Encoding:
Text File  |  1992-07-23  |  4.1 KB  |  71 lines

  1. /***************************************************************************
  2. *                                                                          *
  3. * Chatserver.h                                                             *
  4. * Copyright 1992 by Nik A Gervae                                           *
  5. *                                                                          *
  6. * Part of an example using the Objective-C classes (SktSocketManager,      *
  7. * SktSocket, and SktSocketUser) which implement a convenient interface to  *
  8. * Berkeley stream sockets under NeXTSTEP(r).  See the accompanying class   *
  9. * specifications (files with a .rtf or .spec suffix) and the sources for   *
  10. * further information.                                                     *
  11. *                                                                          *
  12. * NeXTSTEP is a registered trademark of NeXT Computer, Inc.                *
  13. *                                                                          *
  14. ****************************************************************************
  15. *                                                                          *
  16. * LICENSE                                                                  *
  17. *                                                                          *
  18. * This program is free software; you can redistribute it and/or modify     *
  19. * it under the terms of the GNU General Public License as published by     *
  20. * the Free Software Foundation.                                            *
  21. *                                                                          *
  22. * The program and this makefile are distributed in the hope that it will   *
  23. * be useful, but are provided "AS IS" AND WITHOUT ANY WARRANTY; without    *
  24. * any express or implied warranty of MERCHANTABILITY or FITNESS FOR A      *
  25. * PARTICULAR PURPOSE. See the GNU General Public License for more details. *
  26. * Any use or distribution of the program and documentation must include    *
  27. * appropriate copyrights to acknowledge Nik A. Gervae and the Free         *
  28. * Software Foundation, Inc.                                                *
  29. *                                                                          *
  30. * You should have received a copy of the GNU General Public License        *
  31. * along with this program; if not, write to the Free Software              *
  32. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                *
  33. *                                                                          *
  34. ****************************************************************************
  35. *                                                                          *
  36. * VERSION HISTORY                                                          *
  37. *                                                                          *
  38. * Version numbers are simply dates in the form YYYYMMDD.  These represent  *
  39. * the date that version was finished.  Only significantly changed versions *
  40. * are reported here, or those versions requiring explanation of changes.   *
  41. * There may be many interim stages between dated versions.                 *
  42. *                                                                          *
  43. * DateVersion Primary Author  Notes                                        *
  44. * ----------- --------------- -------------------------------------------- *
  45. * 19920327    Nik A Gervae    First released version                       *
  46. *                                                                          *
  47. ***************************************************************************/
  48.  
  49. #import <objc/Object.h>
  50. #import "SktSocketManager.h"
  51.  
  52. @interface Chatserver : Object
  53.  
  54. {
  55.   BOOL              running;   // rather obvious, no?
  56.   SktSocketManager *socketMgr; // handles all text communication
  57.   id                guestList; // list of chatters
  58. }
  59.  
  60. - initWithInetPort:(int)inetPort;
  61. - run;
  62. - update;
  63. - guestDidInit:aGuest;
  64. - guestWillFree:aGuest;
  65. - log:(const char *)message, ...;
  66. - announce:(const char *)announcement;
  67. - announce:(const char *)announcement except:thisOne;
  68. - stop;
  69. - shutdown;
  70.  
  71. @end /*interface Chatserver*/